import request from '@/utils/request'

// 订单列表
export function financeOrder(query) {
  return request({
    url: '/prod-api/finance/orderList',
    method: 'get',
    params: query
  })
}

// 销售列表
export function financeSale(query) {
  return request({
    url: '/prod-api/finance/saleList',
    method: 'get',
    params: query
  })
}

// 储值列表
export function financeStoredValue(query) {
  return request({
    url: '/prod-api/finance/rechargeList',
    method: 'get',
    params: query
  })
}

// 跨店明细列表
export function financeStoreDetail(query) {
  return request({
    url: '/prod-api/finance/',
    method: 'get',
    params: query
  })
}

// 门店负债列表
export function financeStoreDebts(query) {
  return request({
    url: '/prod-api/finance/storeFundList',
    method: 'get',
    params: query
  })
}

// 门店负债详情
export function financeStoreDebtsDetail ({ storeId, query }) {
  return request({
    url: `/prod-api/finance/storeFundDetail/${storeId}`,
    method: 'get',
    params: query
  })
}

// 跨店查询
export function financeKuaList(query) {
  return request({
    url: '/prod-api/finance/kuaList',
    method: 'get',
    params: query
  })
}